import request from "@/utils/request.js";

// 获取审核列表
export const getAuditListService = (params) => {
    return request.get('/audit', {params: params})
}

// 新增审核
export const addAuditService = (data) => {
    return request.post('/audit', data)
}

// 删除审核
export const deleteAuditService = (id) => {
    return request.delete(`/audit/${id}`)
}

// 批量删除
export const deleteAuditBatchService = (ids) => {
    return request.post('/audit/deleteBatch', {ids})
}

// 新增审核
export const updateAuditService = (data) => {
     return request.put('/audit', data)
}